﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wfCheckDemand.aspx.cs" Inherits="msBsc.WebUi.wMall.Buyer.wfCheckDemand" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="/themes/wStyle1/css/sLayout.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sHead.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/sFoot.css" rel="stylesheet" />
    <link href="/themes/wStyle1/css/Buyer/OrderCommCss.css" rel="stylesheet" />
    <title>方案确认</title>
    <style>
    </style>
</head>
<body>
    <div class="wf_all">
        <input type="hidden" id="hidOSId" value="" />
        <div class="action-step action-step2"></div>
        <div class="main-content">
            <div class="show-title icon-check">
                <span class="large-font title-text">方案确认</span><span class="title-line middle-line"></span>
            </div>
            <div id="requestData">
            </div>
            <xmp id="svc_list_temp_order" style="display: none">
                <div class="content-row">
                    <span class="item-title item-wrap-border">前往城市</span>
                    <span class="item-label item-wrap-border" id="destinCity">{{d.rows[0].CUSTOMER_NICKCOUNTRY_NME}}>{{d.rows[0].CITY_NME}}>{{d.rows[0].DESTINATION_NME}}</span>
                </div>
                <div class="content-row">
                    <span class="item-title item-wrap-border">预定线路</span>
                    <span class="item-wrap-border item-label">旅游天数<span class="inner-item" id="routeDays">{{d.rows[0].ORDER_ROUTE_DAYS}}</span></span>
                    <span class="item-label item-wrap-border" id="routeName">{{d.rows[0].ORDER_ROUTE_NME}}</span>
                </div>
                <div class="content-row">
                    <span class="item-title item-wrap-border">预定车型</span>
                    <span class="item-wrap-border item-label">座位数量<span class="inner-item" id="vSeats">{{d.rows[0].ORDER_VEHICLE_SEATS}}</span></span>
                    <span class="item-wrap-border item-label">类别<span class="inner-item" id="vType">{{d.rows[0].VEHICLE_TYPE_NME}}</span></span>
                    <span class="item-wrap-border item-label">品牌<span class="inner-item" id="vBrand">{{d.rows[0].VEHICLE_BRAND_NME}}</span></span>
                </div>
                <div class="content-row">
                    <span class="item-title item-wrap-border">预定司机</span>
                    <span class="item-wrap-border item-label">姓名<span class="inner-item" id="djkName">{{d.rows[0].ORDER_DJACK_NME}}</span></span>
                </div>
                <div class="content-row">
                    <span class="item-title item-wrap-border">接待时间</span>
                    <span class="item-label item-wrap-border" id="serviceDt">{{d.rows[0].BEGIN_SERVICE_DT}}</span>
                </div>
                <div class="content-row">
                    <span class="item-title item-wrap-border">接待地点</span>
                    <span class="item-label item-wrap-border" id="serviceAddr">{{d.rows[0].BEGIN_SERVICE_ADDR}}</span>
                </div>
                <div class="content-row">
                    <span class="item-title item-wrap-border">预计费用</span>
                    <span class="item-wrap-border item-label"><span id="totalFee">{{d.rows[0].TOTAL_CHARGE}}</span><span class="inner-item">元</span></span>
                </div>
                <div class="content-row">
                    <span class="item-title item-wrap-border">联系方式</span>
                    <span class="item-wrap-border item-label">姓名<span class="inner-item" id="custName">{{d.rows[0].BUYER_NME}}</span></span>
                    <span class="item-wrap-border item-label">电话<span class="inner-item" id="custPhone">{{d.rows[0].BUYER_PHONE}}</span></span>
                </div>
                <div class="content-row submit-position">
                    <input type="button" value="确认方案" id="submitInfo" />
                </div>
                <div class="content-row submit-position">
                    <div class="result-msg"></div>
                </div>
                <!--行程安排开始-->
                <div class="show-title submit-position icon-pic">
                    <span class="large-font title-text">行程安排</span><span class="title-line middle-line"></span>
                </div>
                {{#for(var i=0,len=d.rows.length;i < len;i++){ }}
                <div class="days-title">第{{d.rows[i].DETAIL_BELONG_DAY}}天</div>
                <div class="days-content">
                    <ul>
                    {{#for(var j=0,leni=d.rows[i].rows.length;j < len;j++){ }}
                        <li>
                            <div>
                                <a href="javascript:;">
                                    <img src="{{d.rows[i].rows[i].DETAIL_INFO_PIC}}" />
                                    <div class="list-item-name">{{d.rows[i].rows[i].DETAIL_INFO_NME}}</div>
                                </a>
                            </div>
                        </li>
                    {{#} }} 
                  </ul> 
                </div>
                {{#} }}
                
            <!--行程安排结束-->
             </xmp>
            <!--购买说明开始-->
            <div class="show-title submit-position icon-detail">
                <span class="large-font title-text">购买说明</span><span class="title-line middle-line"></span>
            </div>
            <div class="price-expire">
                <div class="expire-title">价格说明</div>
                <div class="expire-content">
                    <div class="expire-item">
                        <span class="circle-num num-color-default">1</span>
                        <span class="expire-item-detail">费用包含：车辆使用费、司i机服务费、油费、停车费、过路费，以及用车相关的所有费用</span>
                    </div>
                    <div class="expire-item">
                        <span class="circle-num num-color-default">2</span>
                        <span class="expire-item-detail">费用不含：行驶途径景区景点门票费、全程用餐费、酒店住宿费及其他个人消费</span>
                    </div>
                    <div class="expire-item">
                        <span class="circle-num num-color-default">3</span>
                        <span class="expire-item-detail">如当日回到出发地，司机餐宿费自理</span>
                    </div>
                    <div class="expire-item">
                        <span class="circle-num num-color-default">4</span>
                        <span class="expire-item-detail">淡旺季价格浮动较大，价格以实际审核价为准</span>
                    </div>
                </div>
            </div>
            <div class="price-expire">
                <div class="expire-title">预定须知</div>
                <div class="expire-content">
                    <div class="expire-item">
                        <span class="circle-num num-color-default">1</span>
                        <span class="expire-item-detail">产品服务时限为每天10小时(100公里），以从酒店接到客人开始，将客人送回入住酒店结束</span>
                    </div>
                    <div class="expire-item">
                        <span class="circle-num num-color-default">2</span>
                        <span class="expire-item-detail">如当天用车超过100公里，之后以每公里3元计算；如当天用车超过10小时，之后以每小时30元计算</span>
                    </div>
                </div>
            </div>
            <div class="price-expire">
                <div class="expire-title">使用方法</div>
                <div class="expire-content">
                    <div class="expire-item">
                        <span class="circle-num num-color-default">1</span>
                        <span class="expire-item-detail">您预订成功后会收到网站的确认短信，出发当日，您可凭短信使用包车服务</span>
                    </div>
                    <div class="expire-item">
                        <span class="circle-num num-color-default">2</span>
                        <span class="expire-item-detail">司机会提前1天晚上22:00之前确认游客信息，通知具体的集合时间与地点</span>
                    </div>
                </div>
            </div>
            <div class="price-expire">
                <div class="expire-title">退款说明</div>
                <div class="expire-content">
                    <div class="expire-item">
                        <span class="expire-item-detail">出行前7天可申请全额退款，出行前2-3天可申请退款50%，出行当天不可申请退款。</span>
                    </div>
                </div>
            </div>
            <!--购买说明结束-->
        </div>

        <!--start JS引用-->
        <script src="/jqPlugin/js/jquery-1.8.3.min.js"></script>
        <script src="/jqPlugin/js/jBase.js"></script>
        <script src="/jqPlugin/js/jBPage.js"></script>
        <script src="/jqPlugin/js/laytpl.js"></script>
        <script src="/themes/wStyle1/js/comm/VerifyJs.js"></script>
        <!--end JS引用-->

        <script type="text/javascript">
            function InitInfo() {
                $("#submitInfo").css("background-color", "#808080").css("color", "#666").attr("disabled", "disabled");

                var OSId = GetQueryStr("serviceId");

                if (IsNull(OSId)) {
                    alert("预定信息有误");
                    return;
                }

                $("#hidOSId").val(OSId);

                var oparm = new jsonRow();
                oparm.AddCell("serviceId", OSId);
                oparm.AddCell("ACTION", "InitInfo");
                ajaxComm(oparm);
            }

            InitInfo();

            //function ShowInitInfo(country, city, desc, days, routeName, vSeats, vType, vBrand, dName, sDt, sAddr, totalFee, cName, cPhone) {
            //    $("#destinCity").text(country + " > " + city + " > " + des);
            //    $("#routeDays").text(days);
            //    $("#routeName").text(routeName);
            //    $("#vSeats").text(vSeats);
            //    $("#vType").text(vType);
            //    $("#vBrand").text(vBrand);
            //    $("#djkName").text(djkName);
            //    $("#totalFee").text(totalFee);
            //    $("#serviceDt").text(sDt);
            //    $("#serviceAddr").text(sAddr);
            //    $("#custName").text(cName);
            //    $("#custPhone").text(cPhone);
            //    $("#submitInfo").css("background-color", "#ff9e00").css("color", "#fff").removeAttr("disabled");
            //}

            function CheckDemand() {
                var serviceId = $.trim($("hidOSId").val());

                if (IsNull(serviceId)) {
                    alert("预定方案信息有误，不能进行确认");
                    return;
                }

                var oparm = new jsonRow();
                oparm.AddCell("serviceId", serviceId);
                oparm.AddCell("ACTION", "CheckService");
                ajaxComm(oparm);
            }
        </script>

        <%=msBsc.WebUi.Code.QtHtmlGet.GetFloorHtml() %>
    </div>
</body>
</html>
